<template>
    <!-- 使用插槽显示组件之间的内容 -->
    <h3 class="list-title"><slot></slot></h3>
</template>
<style lang="less" scoped>
.list-title{
    font-size:16px;
    padding:20px 10px;
    color:#333;
    position: relative;
    //伪元素
    &::before{
        content:"";
        position: absolute;
        left:0px;
        top:50%;
        transform: translateY(-50%);
        height:15px;
        border-left:2px solid #dd001b;
    }
}
</style>